﻿using System.Text.Json;

namespace CookieCookbook;

public class StringsJsonRepository:StringsRepository
{
    private static readonly string Separator = Environment.NewLine;

    
    protected override string StringsToText(List<string> strings)
    {
        return JsonSerializer.Serialize(strings);
    }
    
    protected override List<string> TextToStrings(string fileContent)
    {
        return JsonSerializer.Deserialize<List<string>>(fileContent);
    }
}